const Sequelize = require('sequelize');
const baseModel = require('../baseModel');

class numberModel extends baseModel{
  constructor(){
    super('numberSeq',{
      id:{
        type: Sequelize.INTEGER,
        autoIncrement: true,
        allowNull: false,
        primaryKey:true
      },
      currentValue:{
        type: Sequelize.BIGINT,
        allowNull: false,
      }
    });
    this.model = super.getModel();
    this.model.sync();
  }
}

module.exports = new numberModel();
